#include <iostream>
using namespace std;

// #define INT_MIN 0x80000000
// #define INT_MAX 0x7FFFFFFF
#define INT_MIN -(2e31)
#define INT_MAX (2e31 - 1)
int main()
{
    cout << "aa" << endl;
    int a = 10;
    int b = -10;
    cout << __builtin_popcount(a) << endl; //计算二进制数中1的个数
    cout << __builtin_popcount(b) << endl; //计算二进制数中1的个数,负数在内存中以补码形式存在 = 30
    int c = INT_MIN;
    cout << __builtin_popcount(c) << endl; //我计算得到是2
    cout << c << endl;

    int d = INT_MAX;
    cout << d << endl;
    return 0;
}